<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Chris Rotramel (MRC) -->

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
    <xsl:output method="text" indent="no"/>
    <xsl:template match="/">
        <xsl:apply-templates select="/wordItem"/>
        <xsl:apply-templates select="/outlookItem"/>
    </xsl:template>
    <xsl:template match="wordItem" xml:space="preserve">
=<xsl:value-of select="title"/>=
<xsl:value-of select="htmlBody"/>
    </xsl:template>

    <xsl:template match="outlookItem[MessageClass='IPM.Task']">
        [[outlookItem::<xsl:value-of select="outlookItem"/>| ]] [[ConversationIndex::<xsl:value-of select="ConversationIndex"/>| ]] [[ConversationTopic::<xsl:value-of select="ConversationTopic"/>| ]] [[CreationTime::<xsl:value-of select="CreationTime"/>| ]] [[EntryID::<xsl:value-of select="EntryID"/>| ]] [[Importance::<xsl:value-of select="Importance"/>| ]] [[LastModificationTime::<xsl:value-of select="LastModificationTime"/>| ]] [[MessageClass::<xsl:value-of select="MessageClass"/>| ]] [[NoAging::<xsl:value-of select="NoAging"/>| ]] [[OutlookInternalVersion::<xsl:value-of select="OutlookInternalVersion"/>| ]] [[OutlookVersion::<xsl:value-of select="OutlookVersion"/>| ]] [[Sensitivity::<xsl:value-of select="Sensitivity"/>| ]] [[Size::<xsl:value-of select="Size"/>| ]] [[Subject::<xsl:value-of select="Subject"/>| ]] [[UnRead::<xsl:value-of select="UnRead"/>| ]] [[ActualWork::<xsl:value-of select="ActualWork"/>| ]] [[Complete::<xsl:value-of select="Complete"/>| ]] [[Contacts::<xsl:value-of select="Contacts"/>| ]] [[DateCompleted::<xsl:value-of select="DateCompleted"/>| ]] [[DelegationState::<xsl:value-of select="DelegationState"/>| ]] [[DueDate::<xsl:value-of select="DueDate"/>| ]] [[IsRecurring::<xsl:value-of select="IsRecurring"/>| ]] [[Ordinal::<xsl:value-of select="Ordinal"/>| ]] [[Owner::<xsl:value-of select="Owner"/>| ]] [[PercentComplete::<xsl:value-of select="PercentComplete"/>| ]] [[ReminderTime::<xsl:value-of select="ReminderTime"/>| ]] [[ReminderOverrideDefault::<xsl:value-of select="ReminderOverrideDefault"/>| ]] [[ReminderPlaySound::<xsl:value-of select="ReminderPlaySound"/>| ]] [[ReminderSet::<xsl:value-of select="ReminderSet"/>| ]] [[ResponseState::<xsl:value-of select="ResponseState"/>| ]] [[StartDate::<xsl:value-of select="StartDate"/>| ]] [[Status::<xsl:value-of select="Status"/>| ]] [[TeamTask::<xsl:value-of select="TeamTask"/>| ]] [[TotalWork::<xsl:value-of select="TotalWork"/>| ]] [[InternetCodepage::<xsl:value-of select="InternetCodepage"/>| ]]
    </xsl:template>
    <xsl:template match="outlookItem[MessageClass='IPM.Contact']">
        [[outlookItem::<xsl:value-of select="outlookItem"/>| ]] [[ConversationIndex::<xsl:value-of select="ConversationIndex"/>| ]] [[ConversationTopic::<xsl:value-of select="ConversationTopic"/>| ]] [[CreationTime::<xsl:value-of select="CreationTime"/>| ]] [[EntryID::<xsl:value-of select="EntryID"/>| ]] [[Importance::<xsl:value-of select="Importance"/>| ]] [[LastModificationTime::<xsl:value-of select="LastModificationTime"/>| ]] [[MessageClass::<xsl:value-of select="MessageClass"/>| ]] [[NoAging::<xsl:value-of select="NoAging"/>| ]] [[OutlookInternalVersion::<xsl:value-of select="OutlookInternalVersion"/>| ]] [[OutlookVersion::<xsl:value-of select="OutlookVersion"/>| ]] [[Sensitivity::<xsl:value-of select="Sensitivity"/>| ]] [[Size::<xsl:value-of select="Size"/>| ]] [[Subject::<xsl:value-of select="Subject"/>| ]] [[UnRead::<xsl:value-of select="UnRead"/>| ]] [[Anniversary::<xsl:value-of select="Anniversary"/>| ]] [[Birthday::<xsl:value-of select="Birthday"/>| ]] [[CompanyAndFullName::<xsl:value-of select="CompanyAndFullName"/>| ]] [[Email1Address::<xsl:value-of select="Email1Address"/>| ]] [[Email1AddressType::<xsl:value-of select="Email1AddressType"/>| ]] [[Email1DisplayName::<xsl:value-of select="Email1DisplayName"/>| ]] [[Email1EntryID::<xsl:value-of select="Email1EntryID"/>| ]] [[FileAs::<xsl:value-of select="FileAs"/>| ]] [[FirstName::<xsl:value-of select="FirstName"/>| ]] [[FullName::<xsl:value-of select="FullName"/>| ]] [[FullNameAndCompany::<xsl:value-of select="FullNameAndCompany"/>| ]] [[Gender::<xsl:value-of select="Gender"/>| ]] [[Initials::<xsl:value-of select="Initials"/>| ]] [[Journal::<xsl:value-of select="Journal"/>| ]] [[LastName::<xsl:value-of select="LastName"/>| ]] [[LastNameAndFirstName::<xsl:value-of select="LastNameAndFirstName"/>| ]] [[SelectedMailingAddress::<xsl:value-of select="SelectedMailingAddress"/>| ]] [[HasPicture::<xsl:value-of select="HasPicture"/>| ]] [[ReminderOverrideDefault::<xsl:value-of select="ReminderOverrideDefault"/>| ]] [[ReminderPlaySound::<xsl:value-of select="ReminderPlaySound"/>| ]] [[ReminderSet::<xsl:value-of select="ReminderSet"/>| ]] [[ReminderTime::<xsl:value-of select="ReminderTime"/>| ]]

    </xsl:template>
    <xsl:template match="outlookItem[MessageClass='IPM.Appointment']">
        {| border="1" cellspacing="0" cellpadding="2"
        |-
        !scope="row"| Subject
        | [[ConversationTopic::<xsl:value-of select="CompanyAndFullName"/>]]
        |-
        !scope="row"| To
        | [[ConversationTopic::<xsl:value-of select="Email1Address"/>]]
        |-
        |}
        [[outlookItem::<xsl:value-of select="outlookItem"/>| ]] [[Body::<xsl:value-of select="Body"/>| ]] [[ConversationIndex::<xsl:value-of select="ConversationIndex"/>| ]] [[ConversationTopic::<xsl:value-of select="ConversationTopic"/>| ]] [[CreationTime::<xsl:value-of select="CreationTime"/>| ]] [[EntryID::<xsl:value-of select="EntryID"/>| ]] [[Importance::<xsl:value-of select="Importance"/>| ]] [[LastModificationTime::<xsl:value-of select="LastModificationTime"/>| ]] [[MessageClass::<xsl:value-of select="MessageClass"/>| ]] [[NoAging::<xsl:value-of select="NoAging"/>| ]] [[OutlookInternalVersion::<xsl:value-of select="OutlookInternalVersion"/>| ]] [[OutlookVersion::<xsl:value-of select="OutlookVersion"/>| ]] [[Sensitivity::<xsl:value-of select="Sensitivity"/>| ]] [[Size::<xsl:value-of select="Size"/>| ]] [[Subject::<xsl:value-of select="Subject"/>| ]] [[UnRead::<xsl:value-of select="UnRead"/>| ]] [[AllDayEvent::<xsl:value-of select="AllDayEvent"/>| ]] [[BusyStatus::<xsl:value-of select="BusyStatus"/>| ]] [[Duration::<xsl:value-of select="Duration"/>| ]] [[End::<xsl:value-of select="End"/>| ]] [[IsOnlineMeeting::<xsl:value-of select="IsOnlineMeeting"/>| ]] [[IsRecurring::<xsl:value-of select="IsRecurring"/>| ]] [[MeetingStatus::<xsl:value-of select="MeetingStatus"/>| ]] [[NetMeetingAutoStart::<xsl:value-of select="NetMeetingAutoStart"/>| ]] [[NetMeetingType::<xsl:value-of select="NetMeetingType"/>| ]] [[Organizer::<xsl:value-of select="Organizer"/>| ]] [[RecurrenceState::<xsl:value-of select="RecurrenceState"/>| ]] [[ReminderMinutesBeforeStart::<xsl:value-of select="ReminderMinutesBeforeStart"/>| ]] [[ReminderOverrideDefault::<xsl:value-of select="ReminderOverrideDefault"/>| ]] [[ReminderPlaySound::<xsl:value-of select="ReminderPlaySound"/>| ]] [[ReminderSet::<xsl:value-of select="ReminderSet"/>| ]] [[ReplyTime::<xsl:value-of select="ReplyTime"/>| ]] [[ResponseRequested::<xsl:value-of select="ResponseRequested"/>| ]] [[ResponseStatus::<xsl:value-of select="ResponseStatus"/>| ]] [[Start::<xsl:value-of select="Start"/>| ]] [[ConferenceServerAllowExternal::<xsl:value-of select="ConferenceServerAllowExternal"/>| ]] [[InternetCodepage::<xsl:value-of select="InternetCodepage"/>| ]] [[GlobalAppointmentID::<xsl:value-of select="GlobalAppointmentID"/>| ]] [[StartUTC::<xsl:value-of select="StartUTC"/>| ]] [[EndUTC::<xsl:value-of select="EndUTC"/>| ]] [[StartInStartTimeZone::<xsl:value-of select="StartInStartTimeZone"/>| ]] [[EndInEndTimeZone::<xsl:value-of select="EndInEndTimeZone"/>| ]]
    </xsl:template>
    <xsl:template match="outlookItem[MessageClass='IPM.Note']" xml:space="preserve">

=<xsl:value-of select="ConversationTopic"/>=
==<xsl:value-of select="SenderEmailAddress"/>==
{| border="1" cellspacing="0" cellpadding="2"
|-
!scope="row"| Subject
| [[ConversationTopic::<xsl:value-of select="ConversationTopic"/>]]
|-
!scope="row"| To
| [[ConversationTopic::<xsl:value-of select="To"/>]]
|-
!scope="row"| From
| [[ConversationTopic::<xsl:value-of select="From"/>]]
|-
!scope="row"| Sent On
| [[ConversationTopic::<xsl:value-of select="SentOn"/>]]
|-
|}
<xsl:value-of select="HTMLBody"/>
        
        
[[ConversationIndex::<xsl:value-of select="ConversationIndex"/>| ]] [[ConversationTopic::<xsl:value-of select="ConversationTopic"/>| ]] [[CreationTime::<xsl:value-of select="CreationTime"/>| ]] [[EntryID::<xsl:value-of select="EntryID"/>| ]] [[Importance::<xsl:value-of select="Importance"/>| ]] [[LastModificationTime::<xsl:value-of select="LastModificationTime"/>| ]] [[MessageClass::<xsl:value-of select="MessageClass"/>| ]] [[NoAging::<xsl:value-of select="NoAging"/>| ]] [[OutlookInternalVersion::<xsl:value-of select="OutlookInternalVersion"/>| ]] [[Sensitivity::<xsl:value-of select="Sensitivity"/>| ]] [[Size::<xsl:value-of select="Size"/>| ]] [[Subject::<xsl:value-of select="Subject"/>| ]] [[UnRead::<xsl:value-of select="UnRead"/>| ]] [[AlternateRecipientAllowed::<xsl:value-of select="AlternateRecipientAllowed"/>| ]] [[AutoForwarded::<xsl:value-of select="AutoForwarded"/>| ]] [[DeferredDeliveryTime::<xsl:value-of select="DeferredDeliveryTime"/>| ]] [[DeleteAfterSubmit::<xsl:value-of select="DeleteAfterSubmit"/>| ]] [[ExpiryTime::<xsl:value-of select="ExpiryTime"/>| ]] [[FlagDueBy::<xsl:value-of select="FlagDueBy"/>| ]] [[FlagStatus::<xsl:value-of select="FlagStatus"/>| ]] [[OriginatorDeliveryReportRequested::<xsl:value-of select="OriginatorDeliveryReportRequested"/>| ]] [[ReadReceiptRequested::<xsl:value-of select="ReadReceiptRequested"/>| ]] [[ReceivedByEntryID::<xsl:value-of select="ReceivedByEntryID"/>| ]] [[ReceivedByName::<xsl:value-of select="ReceivedByName"/>| ]] [[ReceivedTime::<xsl:value-of select="ReceivedTime"/>| ]] [[RecipientReassignmentProhibited::<xsl:value-of select="RecipientReassignmentProhibited"/>| ]] [[ReminderOverrideDefault::<xsl:value-of select="ReminderOverrideDefault"/>| ]] [[ReminderPlaySound::<xsl:value-of select="ReminderPlaySound"/>| ]] [[ReminderSet::<xsl:value-of select="ReminderSet"/>| ]] [[ReminderTime::<xsl:value-of select="ReminderTime"/>| ]] [[ReplyRecipientNames::<xsl:value-of select="ReplyRecipientNames"/>| ]] [[SenderName::<xsl:value-of select="SenderName"/>| ]] [[Sent::<xsl:value-of select="Sent"/>| ]] [[SentOn::<xsl:value-of select="SentOn"/>| ]] [[SentOnBehalfOfName::<xsl:value-of select="SentOnBehalfOfName"/>| ]] [[Submitted::<xsl:value-of select="Submitted"/>| ]] [[To::<xsl:value-of select="To"/>| ]] [[BodyFormat::<xsl:value-of select="BodyFormat"/>| ]] [[InternetCodepage::<xsl:value-of select="InternetCodepage"/>| ]] [[FlagIcon::<xsl:value-of select="FlagIcon"/>| ]] [[SenderEmailAddress::<xsl:value-of select="SenderEmailAddress"/>| ]] [[SenderEmailType::<xsl:value-of select="SenderEmailType"/>| ]] 
    </xsl:template>
</xsl:stylesheet>
